
<script type="text/javascript" src="__MOBILE__/default/js/mobile/jquery.js"></script>
<script type="text/javascript" src="__MOBILE__/js/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/home.js"></script>
<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/bindmail.js"></script>
<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/bindmobile.js"></script>
<script type="text/javascript" src="__MOBILE__/newdsn/js/cash/bindwechat.js"></script>

<script type="text/javascript" src="__MOBILE__/js/laydate/laydate.min.js"></script>
<script type="text/javascript" src="__MOBILE__/js/dialog.js"></script>


<style>.has-navbar-top .app-body { padding-top: 72px; }</style>
<div class="scrollable">
<div class="scrollable-content member-setting">

<div>

  <div class="clearfix margintop10 marginleft10">
      <div class="fl"><img src="__MOBILE__/default/images/mobile/cash/icouser.jpg" width="47" height="46" alt=""/></div><div class="fl blue cnbig1 marginleft10 margintop15">{$user.member_name}</div>
    </div>
    <div class="settingmenu margintop10 clearfix">
        <a href="#/center/index/1" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icolock.jpg" width="73" height="74" alt=""/>
            <p class="margintop10">安全设置</p>
            <div class="settingarrow"></div>
        </a>
        <a href="#/center/address" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icouser2.jpg" width="73" height="74" alt=""/>
            <p class="margintop10">账号设置</p>
         
        </a>
        <a href="#/center/notices" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icoreport.jpg" width="73" height="74" alt=""/>
            <p class="margintop10">消息中心</p>
            
        </a>
    </div>
    <div class="clearfix">
      <div class="settingtab active" data-id="personalDetail_container">
            <div class="settingbluebar"></div>
            <div class="settingpanel">
              <div class="settingpaneltxt">个人资料</div>
            </div>
        </div>
        <if condition="$user.is_bind_email eq 0">
        <div class="settingtab " data-id="mailBox_container">
            <div class="settingbluebar"></div>
            <div class="settingpanel">
              <div class="settingpaneltxt blue2">绑定邮箱</div>
            </div>
        </div>
        <else/>
        <div class="settingtab " data-id="mailBox_container">
         <div class="settingbluebar"></div>
         <div class="settingpanel">
           <div class="settingpaneltxt blue2">修改邮箱</div>
         </div>
        </div>
        </if>
        <div class="settingtab" data-id="mobileNo_container">
          <div class="settingbluebar"></div>
          <div class="settingpanel">
              <div class="settingpaneltxt">修改手机</div>
            </div>
        </div>
        
        <div class="settingtab" data-id="wechat_container">
          <div class="settingbluebar"></div>
          <div class="settingpanel">
              <div class="settingpaneltxt">修改微信号</div>
            </div>
        </div>
        
        <div class="settingtab" data-id="changePassword_container">
          <div class="settingbluebar"></div>
          <div class="settingpanel">
              <div class="settingpaneltxt">修改密码</div>
            </div>
        </div>
    </div>
 
<if condition="$user.true_name neq ''">   
      <!-- 个人资料 -->
      <div id="personalDetail_container" class="settingContainer">
        <div class="padding20">
           		 提款时只能用真实姓名操作，绑定后就无法修改哦，<a target="_blank" href="http://chat7.livechatvalue.com/chat/chatClient/chatbox.jsp?companyID=839585&amp;configID=58043&amp;jid=7060780367">如需修改请联系客服</a>
        </div>
        <div class="padding20">
          <div class="textbox clearfix">
            <div class="col1 fl">姓名</div>
              <div class="col2 fl">
                {$user.true_name|msubstr=0,1,'utf-8',false}**
              </div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">性别</div>
            <div class="col2a fl">
            <!--  <i class="fa fa-angle-down"></i>-->
            <if condition="$user.sex eq 0">保密
            <elseif condition="$user.sex eq 1"/>男
            <else/>女
            </if>
            </div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">出生年月</div>
              <div ><!--  class="col2b fl"-->
                  {$user.birthday|date="Y-m-d",###}
              </div>
          </div>
          <div class="gap20"></div>
  
        </div>
      </div>
          
 <else/>  
 
     <div id="personalDetail_container" class="settingContainer">
        <div class="padding20">
           		 提款时只能用真实姓名操作，绑定后就无法修改哦，<a target="_blank" href="#">如需修改请联系客服</a>
        </div>
        <div class="padding20">
          <div class="textbox clearfix">
            <div class="col1 fl">姓名</div>
              <div class="col2 fl">
               <input type="text" id="userName" class="textfield1 needsclick" placeholder="(请填写)"> 
              </div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">性别</div>
            <div class="col2a fl">
              <i class="fa fa-angle-down"></i>
			  <select name="sex" id="sex" class="province floatleft dropdown needsclick">
				<option selected="selected" value="0">保密</option>
				<option value="1">男</option>
				<option value="2">女</option>
			  </select> 
            </div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">出生年月</div>
              <div class="col2b fl"><!--  -->
                  <input type="date" id="birthDay" class="textfield1 needsclick" value="<?php echo date('Y-m-d')?>" onclick="laydate()">
              </div>
          </div>
          <div class="gap20"></div>
  		  <div class="col-xs-12">		
			<div class="submitbtn cnbig btnradius" onclick="bandName()">
				保存
			</div>
		  </div>
        </div>
      </div>
</if>
      
      
      
      <!-- 绑定邮箱 -->    
      <div style="display:none" id="mailBox_container" class="settingContainer">
        <div>
<!--  <div class="padding20">
            绑定邮箱
       </div> -->
          <div class="gap10"></div>
          <div class="container substep step1 active">
            <div type="button" class="btn btn-col3 btn-primary btn-arrow-right btn-arrow-right-none">输入邮箱地址</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">填写验证码</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">完成</div>
          </div>
          <div class="container substep step2">
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right btn-arrow-right-none">输入邮箱地址</div>
            <div type="button" class="btn btn-col3 btn-primary btn-arrow-right">填写验证码</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">完成</div>
          </div>  
          <div class="gap10"></div>
          <if condition="$user.is_bind_email eq 1">
          <div class="padding20">
            	绑定的邮箱：{$user.member_email}
          </div> 
          </if>
           <div class="padding20">
              <div id="mailPage">
                <div class="textbox clearfix">
                  <div class="col1 fl">邮箱地址</div>
                    <div class="col2 fl"><input type="text" class="textfield1" id="txtEmail" placeholder="(请填写)"></div>
                </div>
                <div class="aligncenter">邮箱可用于找回密码</div>
              </div>
              <div id="mailCodePage" style="display: none">
                <div class="textbox clearfix">
                  <div class="col1 fl">验证码</div>
                    <div class="col2 fl"><input type="text" class="textfield1" id="txtEmailCode" placeholder="(请填写)"></div>
                </div>
                <div class="textbox noborder clearfix">
                  <input type="button" id="get_mail" class="get_mail btnlink fl white cnbig1" value="点击获取"/> 
                </div>
              </div>
            <div class="gap20"></div>
            <div class="col-xs-12">
              <input id="btnCheckMail" <if condition="$user.is_bind_email eq 0">onclick="checkUserMail();"<else/>onclick="checkEditMail();"</if> class="submitbtn cnbig btnradius" value="下一步"/>
              <input id="btnCheckMailCode" style="display:none" <if condition="$user.is_bind_email eq 0">onclick="bindMail();"<else/>onclick="editEmail();"</if> class="submitbtn cnbig btnradius" value="下一步"/>
            </div>
          </div>
        </div>
      </div>
      
   
      
      <!-- 修改手机 -->       
      <div style="display:none" id="mobileNo_container" class="settingContainer">
        <div>
          <div class="gap10"></div>
          <div class="container substep step1 active">
            <div type="button" class="btn btn-col3 btn-primary btn-arrow-right btn-arrow-right-none">输入手机号码</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">填写验证码</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">完成</div>
          </div>
          
          <div class="container substep step2 ">
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right btn-arrow-right-none ">输入手机号码</div>
            <div type="button" class="btn btn-col3  btn-arrow-right btn-primary">填写验证码码</div>
            <div type="button" class="btn btn-col3 btn-info btn-arrow-right">完成</div>
          </div>
          <div class="gap10"></div>
            <div class="padding20">
            	绑定的手机号码：{$user.member_mobile|substr=0,7}****
          </div> 
           <div class="padding20">
              <div id="mobilePage">
               
              		
              	
                <div class="textbox clearfix">
                
                  <div class="col1 fl">手机号码</div>
                    <div class="col2 fl"><input type="text" class="textfield1" id="txtMobile" placeholder="(请填写)"></div>
                </div>
              </div>  

             <div id="mobileCodePage" style="display: none">
                <div class="textbox clearfix">
                  <div class="col1 fl">验证码</div>
                    <div class="col2 fl"><input type="text" class="textfield1" id="txtMobileCode1" placeholder="(请填写)"></div>
                </div>
                <div class="textbox noborder clearfix">
                  <input type="button" class="get_unbindmobile btnlink fl white cnbig1" value="点击获取"/> 
                </div>
              </div>

            <div class="gap20"></div>
            <div class="col-xs-12">
           	  <input id="btnCheckMobile" onclick="checkUserMobile();" class="submitbtn cnbig btnradius" value="下一步"/>
              <input id="btnEditMobile" onclick="editMobile();" class="submitbtn cnbig btnradius" value="验证" style="display:none"/>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 修改微信号 -->  
         
      <div style="display:none" id="wechat_container" class="settingContainer">
        <div>
          <div class="gap10"></div>
          <div class="container substep step1 active">
            <div type="button" class="btn btn-col3 btn-primary btn-arrow-right btn-arrow-right-none">输入微信号</div>
          </div>
          <div class="gap10"></div>
         <div class="padding20">
            	绑定的微信号：{$user.wechat}
          </div>
           <div class="padding20">
              <div id="mailPage2">
                <div class="textbox clearfix">
                  <div class="col1 fl">微信号</div>
                    <div class="col2 fl"><input type="text" class="textfield1" id="txtWechat" placeholder="(请填写)"></div>
                </div>
              </div>
            <div class="gap20"></div>
          </div>
          <div class="col-xs-12">
           	  <input id="btnCheckMobile" onclick="checkUserWechat();" class="submitbtn cnbig btnradius" value="修改"/>
         </div>
        </div>
      </div>      
		
      <!-- 修改密码 -->
      <div style="display:none" id="changePassword_container" class="settingContainer">
        <div class="padding20">
          <div class="textbox clearfix">
            <div class="col1 fl">旧密码</div>
              <div class="col2 fl"><input type="password" id="oldPassword" class="textfield1" placeholder="(请填写)"></div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">新密码</div>
              <div class="col2 fl"><input type="password" id="password" class="textfield1" placeholder="(请填写)"></div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">确认密码</div>
              <div class="col2 fl"><input type="password" id="ckPassword" class="textfield1" placeholder="(请填写)"></div>
          </div>
          <div class="textbox clearfix">
            <div class="col1 fl">验证码</div>
              <div class="col2 fl"><input type="text" class="textfield1" id="code" placeholder="(请填写)"></div>
          </div>
          <div class="textbox noborder clearfix">
            <input type="button" class="btnlink fl white cnbig1" id="get_code1" value="点击获取"/> 
          </div>
          <div class="gap20"></div>
            <div class="col-xs-12">
              <input onclick="changePassword1();" class="submitbtn cnbig btnradius" value="确定"/>
            </div>
        </div>
      </div>
</div>

</div>
</div>
<script>
var hash = window.location.hash;
hash =  hash.split('/')[3];
$('.settingtab:nth-child('+hash+')').click();

function getOnlineSupport() {
	  window.open(ONLINE_SUPPORT, '_blank');
	}
</script>